/*
 * Powered By XY
 * Since 2020
 */

package com.xy.biz.xd.dao;

import com.xy.biz.xd.domain.bo.DocumentFlowNewAndModifyBO;
import com.xy.biz.xd.domain.po.DocumentFlowNewAndModifyPO;
import com.xy.biz.xd.domain.query.DocumentFlowNewAndModifyQuery;

import java.util.Collection;
import java.util.List;

/**
 *
 *
 * @author wcs
 * @date 2021-2-26
 */
public interface DocumentFlowNewAndModifyDao {

	/**
	 * 保存
	 *
	 * @param documentFlowNewAndModifyPO
	 */
	int saveDocumentFlowNewAndModify(DocumentFlowNewAndModifyPO documentFlowNewAndModifyPO);

	/**
	 * 保存
	 *
	 * @param collection
	 */
	int saveAllDocumentFlowNewAndModify(List<DocumentFlowNewAndModifyPO> collection);

	/**
	 * 更新
	 *
	 * @param documentFlowNewAndModifyPO
	 */
	int updateDocumentFlowNewAndModify(DocumentFlowNewAndModifyPO documentFlowNewAndModifyPO);
	int updateAllDocumentFlowNewAndModify(List<DocumentFlowNewAndModifyPO> collection);

	/**
	 * 删除
	 *
	 * @param documentFlowNewAndModifyId
	 */
	int deleteDocumentFlowNewAndModify(Long documentFlowNewAndModifyId);

	/**
	 * 查找一个
	 *
	 * @param documentFlowNewAndModifyId
	 * @return
	 */
	DocumentFlowNewAndModifyPO getDocumentFlowNewAndModify(Long documentFlowNewAndModifyId);

	/**
	 * 查找多条
	 *
	 * @param collection
	 * @return
	 */
	List<DocumentFlowNewAndModifyPO> listDocumentFlowNewAndModifyById(Collection<Long> collection);

	/**
	 * 条件查找多条
	 *
	 * @param query 查找条件
	 * @return
	 */
	List<DocumentFlowNewAndModifyPO> listDocumentFlowNewAndModify(DocumentFlowNewAndModifyQuery query);

	/**
	 * 条件统计个数
	 *
	 * @param query 查找条件
	 * @return
	 */
	int countDocumentFlowNewAndModify(DocumentFlowNewAndModifyQuery query);

	/**
	 * 获取新增流程实例
	 * @param collect
	 * @return
	 */
    List<DocumentFlowNewAndModifyPO> getDocumentFlowNewAndModifyList(Collection<Long> collect);
}
